package com.cyy.freemarker;

import com.cyy.base.util.FreemarkerGetArgsUtils;
import freemarker.template.TemplateMethodModelEx;
import freemarker.template.TemplateModelException;

import java.util.List;

/**
 * 获取当前登录用户
 * author Chenyuyi
 * date 2021/12/21  10:16
 */
public class CurrentUserSettingGetter implements TemplateMethodModelEx {

    @Override
    public Object exec(List list) throws TemplateModelException {
        return FreemarkerGetArgsUtils.getLoginUser();
    }
}
